﻿using ReflectionStudio.Components.UserControls;
using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace WPFExcelReport
{
    public partial class MainWindow : DocumentBase
    {

        public MainWindow()
        {
            DataContext = new ViewModelBase();
            InitializeComponent(); 
            this.Name = "采购入库";
        }
        string CurrentUI = "";
        ViewBase ui;
        public override void OnWorkflowIDChange(MessageEventArgs e)
        {
            base.OnWorkflowIDChange(e);
            string wfid = e.Info.Details;
            switch (wfid)
            {
                case "EKWB":
                    ui = new TEKWB14();
                    MainTab.Children.Add(ui);
                    ((TEKWB14)ui).LO = e.Info.LO;
                    ((TEKWB14)ui).LB = e.Info.LB;
                    ((TEKWB14)ui).LP = e.Info.LP;
                    ((TEKWB14)ui).IsPage = true;
                    ((TEKWB14)ui).Rows = 50;
                    ((TEKWB14)ui).ORDERNUM = e.Info.ORDER;
                    break;
            }
        } 
        
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
          

        }

    }
}
